package edu.kjxy.worker0308;

import java.util.Scanner;

public class worker03 {

	public static void main(String[] args) {
		System.out.println("请输入一个算术表达式：");
		
		Scanner in = new Scanner(System.in);
        double a = in.nextDouble();
        String str = in.next();
        double b = in.nextDouble();
		in.close();	
		
		double result = 0;
		switch(str)
		{
			case "+": result = a + b;break;
			case "-": result = a - b;break;
			case "*": result = a * b;break;
			case "/": result = a / b;break;
			case "%": result = a % b;break;
			default: System.out.println("输入错误！");
		}
		System.out.println(result);
	}

}
